package com.xuyuan.json.jackson.entity;

import com.fasterxml.jackson.annotation.JsonAutoDetect;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Data;

import java.util.Date;

@Data
@JsonAutoDetect(getterVisibility = JsonAutoDetect.Visibility.ANY)
public class Person {
    private String myName;
    private Integer myAge;
    private Date myDate;
    private int myHeight;
    @JsonIgnore
    private Action action;
    // 反序列化没有值时，使用默认值
    //@JacksonInject(value = "responseTime")
    private Date responseTime;
}